<!DOCTYPE html>
<html>
    <head>
        <title>CSS Test: Blended element with transition</title>
        <link rel="author" title="Mihai Tica" href="mitica@adobe.com">
        <link rel="help" href="http://dev.w3.org/fxtf/compositing-1/#mix-blend-mode">
        <meta name="assert" content="Test checks that an element having a transition applied on opacity blends with the parent element.">
        <meta name="flags" content="dom"/>
        <link rel="reviewer" title="Rik Cabanier" href="mailto:cabanier@adobe.com">
        <link rel="reviewer" title="Mirela Budaes" href="mailto:mbudaes@adobe.com">
        <link rel="match" href="reference/mix-blend-mode-transition-ref.html">
        <style type="text/css">
            div {
                width: 100px;
                height: 100px;
                background: #FF0;
            }

            #blender {
                background: #F00;
                mix-blend-mode: difference;
                transition: opacity 1s ease;
            }

            .opaqueBox {
                opacity: 0.4;
            }
        </style>
    </head>
    <body>
        <p>Test passes if you can see a fading green rectangle.</p>
        <div><div id="blender"></div></div>
        <script type="text/javascript">
            setInterval(function(){ document.getElementById('blender').className = 'opaqueBox'; }, 100);
        </script>
    </body>
</html>
